package com.turing.post.common.util;

import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name = "SysOpUser")
public class SysOpUser implements java.io.Serializable {

	/**
	 * 登录序列号,用来控制不能多出登录
	 */
	private String serial;

	/**
	 * 互联网web
	 */
	public static final String Internet_Agent = "1";

	/**
	 * 停用
	 */
	public static final String Status_Stop = "0";
	/**
	 * 用户编号
	 */
	private BigInteger operId;
	/**
	 * 登录名称
	 */
	private String operLogonName;
	/**
	 * 登录密码
	 */
	private String operPasswd;
	/**
	 * 归属机构号
	 */
	private String operBranchNo;
	/**
	 * 角色编号
	 */
	private BigInteger roleId;

	/**
	 * 姓名
	 */
	private String name;// 姓名 varchar（40） Not Null
	/**
	 * 性别
	 */
	private String sex;// 性别 char(1) Not Null 0 – 女
	/**
	 * 状态
	 */
	private String status;// 状态 char(1) Not Null 0 – 停用 1 – 启用
	/**
	 * 归属标示
	 */
	private String issueOper;// 发卡商管理员标识 char(1) Not Null 0 – 否 1 – 是
	/**
	 * 电话
	 */
	private String linkTele;// 联系电话 varchar(40) Null
	/**
	 * 邮箱
	 */
	private String email;// 邮箱 varchar(60) Null
	/**
	 * web代理标示
	 */
	private String InternetAgent;
	/**
	 * 密码错误次数
	 */
	private Integer PwdErrCnt; // 密码错误次数 int Not Null 初始0
	/**
	 * 上次密码错误时间
	 */
	private Date LastPwdErrTime; // 上次密码错误时间 date Null 精确到秒
	/**
	 * 上次密码修改时间
	 */
	private Date LastPwdChangeTime; // 上次密码修改时间 date Not Null 用户创建时填入
	/**
	 * 问题1
	 */
	private String Question1;
	/**
	 * 答案1
	 */
	private String Answer1;
	/**
	 * 问题2
	 */
	private String Question2;
	/**
	 * 答案2
	 */
	private String Answer2;
	/**
	 * 问题3
	 */
	private String Question3;
	/**
	 * 答案3
	 */
	private String Answer3;

	/**
	 * 登录后提示信息
	 */
	private String logonMessage;

	private String errorMsg;

	private String roles;

	public SysOpUser() {
		super();
	}

	@Id
	@Column(name = "OperId", nullable = false)
	public BigInteger getOperId() {
		return operId;
	}

	public void setOperId(BigInteger operId) {
		this.operId = operId;
	}

	@Column(name = "OperLogonName", nullable = false)
	public String getOperLogonName() {
		return operLogonName;
	}

	public void setOperLogonName(String operLogonName) {
		this.operLogonName = operLogonName;
	}

	@Column(name = "OperPasswd")
	public String getOperPasswd() {
		return operPasswd;
	}

	public void setOperPasswd(String operPasswd) {
		this.operPasswd = operPasswd;
	}

	@Column(name = "OperBranchNo")
	public String getOperBranchNo() {
		return operBranchNo;
	}

	public void setOperBranchNo(String operBranchNo) {
		this.operBranchNo = operBranchNo;
	}

	@Column(name = "RoleId")
	public BigInteger getRoleId() {
		return roleId;
	}

	public void setRoleId(BigInteger roleId) {
		this.roleId = roleId;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "SEX")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "STATUS")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "ISSUEOPER")
	public String getIssueOper() {
		return issueOper;
	}

	public void setIssueOper(String issueOper) {
		this.issueOper = issueOper;
	}

	@Column(name = "LINKTELE")
	public String getLinkTele() {
		return linkTele;
	}

	public void setLinkTele(String linkTele) {
		this.linkTele = linkTele;
	}

	@Column(name = "EMAIL")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "INTERNETAGENT")
	public String getInternetAgent() {
		return InternetAgent;
	}

	public void setInternetAgent(String internetAgent) {
		InternetAgent = internetAgent;
	}

	@Column(name = "PWDERRCNT")
	public Integer getPwdErrCnt() {
		return PwdErrCnt;
	}

	public void setPwdErrCnt(Integer pwdErrCnt) {
		PwdErrCnt = pwdErrCnt;
	}

	@Column(name = "LASTPWDERRTIME")
	public Date getLastPwdErrTime() {
		return LastPwdErrTime;
	}

	public void setLastPwdErrTime(Date lastPwdErrTime) {
		LastPwdErrTime = lastPwdErrTime;
	}

	@Column(name = "LASTPWDCHANGETIME")
	public Date getLastPwdChangeTime() {
		return LastPwdChangeTime;
	}

	public void setLastPwdChangeTime(Date lastPwdChangeTime) {
		LastPwdChangeTime = lastPwdChangeTime;
	}

	@Column(name = "QUESTION1")
	public String getQuestion1() {
		return Question1;
	}

	public void setQuestion1(String question1) {
		Question1 = question1;
	}

	@Column(name = "ANSWER1")
	public String getAnswer1() {
		return Answer1;
	}

	public void setAnswer1(String answer1) {
		Answer1 = answer1;
	}

	@Column(name = "QUESTION2")
	public String getQuestion2() {
		return Question2;
	}

	public void setQuestion2(String question2) {
		Question2 = question2;
	}

	@Column(name = "ANSWER2")
	public String getAnswer2() {
		return Answer2;
	}

	public void setAnswer2(String answer2) {
		Answer2 = answer2;
	}

	@Column(name = "QUESTION3")
	public String getQuestion3() {
		return Question3;
	}

	public void setQuestion3(String question3) {
		Question3 = question3;
	}

	@Column(name = "ANSWER3")
	public String getAnswer3() {
		return Answer3;
	}

	public void setAnswer3(String answer3) {
		Answer3 = answer3;
	}

	@Column(name = "logonMessage")
	public String getLogonMessage() {
		return logonMessage;
	}

	public void setLogonMessage(String logonMessage) {
		this.logonMessage = logonMessage;
	}

	@Transient
	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	@Transient
	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	@Transient
	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}
}